import gcRequest from "../utils/request"


export const userLogin = (code: string) =>{
  console.log(code, 'wolaidenrule')
  return gcRequest.post('/user/login', {
    code
  })
}

export const updateUser = (data: any) => {
  return gcRequest.post('/user/update', {
    ...data
  })
}